package com.lanchetech.dao;

import com.lanchetech.bean.request.GoodsCardReq;
import com.lanchetech.entity.GoodsCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface GoodsCardMapper {
    List<GoodsCard> getGoodsCardList(GoodsCardReq req);

    void editGoodsCard(GoodsCard goodsCard);

    GoodsCard findOneByHipoConfigId(@Param("hipoConfigId") Long hipoConfigId);

    void updateGoodsCard(GoodsCard goodsCard);

    GoodsCard findOneById(@Param("id") Long id);

    Long getGoodsCardByAmount(BigDecimal signingAmount);
}
